import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  daleteJson,
  download
} from "../utils/request";

//查询中奖记录
export function queryWinningRecordList(data) {
  return post("/api/promotion-service/v1/winningRecord/queryWinningRecordList",data);
    // return post('http://127.0.0.1:18080/api/promotion-service/v1/winningRecord/queryWinningRecordList', data);
}

//批量发货 post
export function batchDeliverGoods(data) {
  return post(
    "/api/promotion-service/v1/winningRecord/batchDeliverGoods",
    data
  );
}

//查询奖品库
export function queryWinningList(data) {
  return post("/api/promotion-service/v1/winningRecord/queryWinningList", data);
}

//查询中奖记录 Excel
export function queryWinningRecordListExcel(data) {
         return download("/api/promotion-service/v1/winningRecord/queryWinningRecordListExcel",data);
  // return download("http://127.0.0.1:18080/api/promotion-service/v1/winningRecord/queryWinningRecordListExcel", data); 
}